package com.aaa.controller;

import com.aaa.entity.Fcart;
import com.aaa.service.impl.FcartServiceImpl;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("fcart")
public class FcartController {
    @Resource
    FcartServiceImpl service;
    @RequestMapping("select")
    public List<Fcart> select(Integer pageNum, Integer pageSize, Fcart fcart){
        return service.select(pageNum,pageSize,fcart);
    }
    @RequestMapping("selectall")
    public List<Map> selectall(Integer  fuser){
        return service.selectall(fuser);
    }

    @RequestMapping("upadd")
    public boolean upadd(Fcart fcart){
        return service.upadd(fcart);
    }

    @RequestMapping("del")
    public Integer del(Integer id){
        return service.del(id);
    }
}
